package com.scf.loanmanage.dao;

import com.scf.loanmanage.entity.RepaymentRegistered;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface RepaymentRegisteredMapper {
    //查询
    List<RepaymentRegistered> selectAll(@Param("reid")Integer reid,@Param("pageIndex") Integer pageIndex,
                                        @Param("pageSize")  Integer pageSize);

    //增加
    void insertByreid(@Param("regid")Integer regid,@Param("repaymentdate") Date repaymentdate,@Param("actualrepaymentdate") Date actualrepaymentdate,@Param("shouldtotal") Double shouldtotal,
                      @Param("shouldprincipal") Double shouldprincipal, @Param("overdue")Double overdue,@Param("rxpectedpenaltyrate") Integer rxpectedpenaltyrate,
                      @Param("repaymentstatus") Double repaymentstatus,@Param("state")String state, @Param("reid")Integer reid);

    void updateByregid(Integer regid);

   //查询总条数
    Integer selectcount();

    //根据ID查金额
    Double selectReidzongjine(Integer reid);

    //根据ID查利息
    Double selectReidzonglixi(Integer reid);
}
